﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Administrators/Admins.master"
    Inherits="System.Web.Mvc.ViewPage<IEnumerable<QualificationLevel>>" %>
<%@ Import Namespace="ViewRes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:AdministratorsStrings.StudentsGroups%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptsContent" runat="server">
<script src="<%:Url.Content("~/Scripts/Diploma.js")%>" type="text/javascript"> </script>
    <script type="text/javascript"> 

        function addGroup() {
            openDialog('<%:Url.RouteUrl("Default", new {controller = "StudentsGroups", action = "Add"})%>', '<%:AdministratorsStrings.AddGroup%>', function() {
                $("#divDialog form").attr("onSuccess", "loadActiveEntries();");
            });
        }
       
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <span class="titletext">
        <%:AdministratorsStrings.StudentsGroups%></span>
    <div class="addlink">
        <%=Html.RouteLink(SharedStrings.Add, "Default", null,
                                             new {onclick = "addGroup();return false;"})%></div>
    <div class="addlink">Импортировать из файла Excel</div>
    <%
        Html.RenderPartial("~/Views/StudentsGroups/AllGroupsControl.ascx", Model);%>
</asp:Content>
